package com.ywq.wechatordersys.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
public class OrderForm {
    /**
     * 买家姓名
     */
    @NotEmpty(message = "The name will be") //姓名必填
    private String name;
    @NotEmpty(message = "The phone will be") //必填
    private String phone;
    @NotEmpty(message = "The address will be") //必填
    private String address;

    @NotEmpty(message = "The openid will be") //必填
    private String openid;
    /**
     * 购物车信息
     */
    @NotEmpty(message = "提交的商品列表") //必填
    private String items;


}
